home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!ns.unibol.com
- From: John Girvin <jgirvin@bfs.unibol.com>
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: AddIntServer + VERTB strangeness
- Date: Sun, 31 Mar 1996 13:05:51 GMT
- Message-ID: <199603311305.NAA20741@mailhost.unibol.com>
- X-NNTP-Posting-Host: ns.unibol.com
- X-Newsreader: TIN [version 1.2 PL2]
- X-Mail2News-Path: ns.unibol.com
-
- On 29 Mar 1996 19:29:50 +0100, mlelstv@serpens.rhein.de (Michael van Elst) wrote:
- :>John Girvin <jgirvin@bfs.unibol.com> writes:
-
- :>The vblank interrupt is a server interrupt. You are just allowed to
- :>add your own code to the chain (at any position but you should be aware
- :>of a graphics.library bug) and you must not abort the chain.
- erm, apology time *blush* I missed the bit in the RKMs that says youre
- not allowed to abort VERTB interrupt chains, which is what I was doing.
- So: sorry! I really should read documentation, not skim over it I guess...
-
- What is the graphics.library bug?
-
- :>Maybe I was misunderstood. Allocating HW resources and then hitting the
- :>hardware is "using the OS".
- Yes, that was a misunderstanding. I thought you meant *any* HW hitting
- was anti-OS, even if the HW was OS allocated. This is what I call the
- "in between" ground of 50% OS/HW because you access the silicon directly
- and not via APIs.
-
- :>>If you stick to the published OS and HW interfaces (which I do) then surely
- ^^^^^^^^^^ seems not!
- :>>there is no problem provided these interfaces dont change?
- :>The only problem is that of portability. If you poke the hardware then
- :>people must use this hardware. If you use just OS functions then this
- :>adds an abstraction layer that keeps the software happy even when the
- :>hardware changes.
-
- Yup, I realise my code will fall over big time on non-OCS machines in
- the future. BTW, "fall over" == "OS-check for OCS and if not available
- tell the user it needs OCS and exit" :) Like I said, this is *old* code
- and way too much work to rewrite 100% future friendly.
-
- :>Using the interrupts in this way is not allowed and it doesn't work
- :>anyway :)
- hehehe true, true :)
-
- :>>:>the only
- :>>:>acceptable solution is to obey to the rules set by the OS specification.
- :>>Im trying to.
- :>I see this. I'm not flaming you but you simply made a mistake.
- Sorry :) I thought you were...
-
- :>The OS specification says that you must not abort the chain with your
- :>handler. This is special for VERTB, it is allowed for PORTS and EXTER.
- Thats the sentence I missed in the RKMs :)
-
- So theres nothing I can do then? I just let the OS VERTB interrupts run
- and cause my nice smooth display to jerk and shudder? *sigh* Maybe Ill
- find another way to do it...
-
- Cheers,
- /John.
- __________________________________________________________________________
- |/\John Girvin : developing software for Unibol Inc., speaking for myself|
- |\/jgirvin@bfs.unibol.com | Amiga,!PC,net,Trek,SF,MTB,C2H50H,house,techno|
- |girv@girvnet.demon.co.uk | Youll never take me alive, Macro$loth fiends!|
- \A1200/030-40/10M/3.0 A500/000-7/2M/2.04 464/Z80-4/0.0625M/1.0 Team AMIGA/
-